{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
</head>
<link rel="stylesheet" href="{% static 'plungs/bootstrap-5.3.0-alpha1-dist/css/bootstrap.min.css'  %}">
<style>
    .a{
       width: 500px; 
    }
</style>
<body>
    <div class="container a">
    <form action="" method="post">    
    <h3>注册界面</h3>
    {% for item in form %}
    {% if item.name == 'code' %}
    <div class="mb-3 clearfix">
        <label  class="form-label"><b>{{item.label}}</b></label>
        <div class="row">
        <div class="col-md-6">{{ item }}</div>
        <div class="col-md-6"><input type="button" value="点击获取验证码" class="btn btn-light"></div>
        </div>
    </div>
    {% else %}
    <div class="mb-3">
        <label  class="form-label"><b>{{item.label}}</b></label>
        {{ item }}
    </div>
    {% endif %}
{% endfor %}
<button type="submit" class="btn btn-primary">注册</button>
</form>
</div>






<script src="{% static 'plungs/bootstrap-5.3.0-alpha1-dist/js/bootstrap.min.js' %}"></script>
</body>
</html>